package com.ouc.yyi.test04;

public class Test04 {
    //定义枚举
    public enum Level{
        U1, U2, U3
    }
    public void show(Level level){
        switch(level){
            case U1:
                System.out.println("掌握基础");
                break;
            case U2:
                System.out.println("学会使用框架");
                break;
            case U3:
                System.out.println("项目实战");
                break;
            default:
                System.out.println("输入有误，请重新输入！");

        }
    }
    public static void main(String[] args) {
        Test04 t = new Test04();
        t.show(Level.U1);
        Level level = Level.U2;
        t.show(level);
        t.show(Level.U3);

    }
}